package nl.ceasaro.jeslee.core.model.person;

import nl.ceasaro.jeslee.core.model.AbstractEntity;
import org.apache.commons.lang.builder.ToStringBuilder;

/**
 * Created by IntelliJ IDEA.
 * User: cees
 * Date: Oct 7, 2008
 * Time: 8:37:47 PM
 * <p>
 * Address of a person
 * </p>
 */
public class Address extends AbstractEntity
{
   private static final long serialVersionUID = 4755833433289376543L;

   private String street;
   private String number;
   private String numberAddition;
   private String zipcode;
   private String city;
   private String province;
   private String country;

   public String getStreet()
   {
      return street;
   }

   public void setStreet(String street)
   {
      this.street = street;
   }

   public String getNumber()
   {
      return number;
   }

   public void setNumber(String number)
   {
      this.number = number;
   }

   public String getNumberAddition()
   {
      return numberAddition;
   }

   public void setNumberAddition(String numberAddition)
   {
      this.numberAddition = numberAddition;
   }

   public String getZipcode()
   {
      return zipcode;
   }

   public void setZipcode(String zipcode)
   {
      this.zipcode = zipcode;
   }

   public String getCity()
   {
      return city;
   }

   public void setCity(String city)
   {
      this.city = city;
   }

   public String getProvince()
   {
      return province;
   }

   public void setProvince(String province)
   {
      this.province = province;
   }

   public String getCountry()
   {
      return country;
   }

   public void setCountry(String country)
   {
      this.country = country;
   }

   @Override
   public String toString()
   {
      ToStringBuilder toStringBuilder = new ToStringBuilder(this);
      toStringBuilder.append(getStreet());
      toStringBuilder.append(getNumber());
      toStringBuilder.append(getNumberAddition());
      toStringBuilder.append(getZipcode());
      toStringBuilder.append(getCity());
      toStringBuilder.append(getProvince());
      toStringBuilder.append(getCountry());
      return toStringBuilder.toString();
   }

}
